﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace EFXpoAdoCompare.Models
{
    [Table("Article")]
    public class Article
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Intro { get; set; }
        public int HitCount { get; set; }
        public double Score { get; set; }
        public DateTime PostTime { get; set; }
        public int PosterId { get; set; }
        public virtual Person Poster { get; set; }
    }

    [Table("Person")]
    public class Person
    {
        public int Id { get; set; }
        public string UserName { get; set; }
        public DateTime RegTime { get; set; }
        public DateTime Birthdate { get; set; }
        public string Mark { get; set; }
    }
}